import request from "../../../utils/request";

/**
 * 导出sku信息
 * @returns {AxiosPromise<AxiosResponse<any>>}
 */
export function downloads() {
  return request({
    url: '/product/sku/exprot',
    method: 'get'
  })
}
export function deleteSkuId(spuId) {
  return request({
    url: '/product/spu/delete/'+spuId,
    method: 'delete'
  })
}
export function InfoSkuId(skuId) {
  return request({
    url: '/product/sku/findInfo/'+skuId,
    method: 'get'
  })
}
export function categoryTree() {
  return request({
    url: '/product/category/categoryTree',
    method: 'post'
  })
}
export function brandList() {
  return request({
    url: '/product/brand/brandList',
    method: 'get'
  })
}
export function addProduct(product) {
  return request({
    url: '/product/spu/addProduct',
    method: 'post',
    data: product,
  })
}

export function exportExcel() {
  return request({
    url: '/product/user/export',
    method: 'get'
  })
}
export function addStock(wareSkuStock) {
  return request({
    url: '/product/spu/addStock',
    method: 'post',
    data: wareSkuStock
  })
}


